import Layout from '@/layout'
import twoLayout from '@/twoLayout'

export default {
		path: '/deviceManagement',
		name: 'deviceManagement',
		redirect: '/deviceManagement/personnelOrientation',
		component: Layout,
		alwaysShow: true,
		meta: {
			title: '设备管理',
			roles: ['admin'],
			icon: 'bug'
		},
		children: [
			{
				path: 'personnelOrientation',
				name: 'personnelOrientation',
				redirect: '/personnelOrientation/device',
				alwaysShow: true,
				component: twoLayout,
				meta: {
					title: '人员基站管理'
				},
				children: [
					{
						path: 'device',
						name: 'device',
						component: () => import(/* webpackChunkName: "deviceManagementPersonnelOrientation" */'@/views/DeviceManagement/PersonnelOrientation/Device'),
						meta: {
							title: '基站管理'
						}
					},
					{
						path: 'dispatching',
						name: 'dispatching',
						component: () => import(/* webpackChunkName: "personnelOrientationDispatching" */'@/views/DeviceManagement/PersonnelOrientation/Dispatching'),
						meta: {
							title: '调度管理'
						}
					},
					{
						path: 'alarmSettings',
						name: 'alarmSettings',
						component: () => import(/* webpackChunkName: "personnelOrientationAlarmSettings" */'@/views/DeviceManagement/PersonnelOrientation/AlarmSettings'),
						meta: {
							title: '报警设置'
						}
					}
				]
			},
			{
				path: 'accessControl',
				name: 'accessControl',
				component: () => import(/* webpackChunkName: "accessControlDevice" */'@/views/DeviceManagement/AccessControl'),
				meta: {
					title: '门禁闸机管理'
				}
			},
			{
				path: 'addSensor',
				name: 'addSensor',
				component: () => import(/* webpackChunkName: "sensorAddSensor" */'@/views/DeviceManagement/Sensor/AddSensor'),
				meta: {
					title: '环境检测设备'
				}
			},
			// {
			// 	path: 'sensor',
			// 	name: 'sensor',
			// 	redirect: '/sensor/addSensor',
			// 	alwaysShow: true,
			// 	component: twoLayout,
			// 	meta: {
			// 		title: '环境检测设备'
			// 	},
			// 	children: [
			// 		{
			// 			path: 'addSensor',
			// 			name: 'addSensor',
			// 			component: () => import(/* webpackChunkName: "sensorAddSensor" */'@/views/DeviceManagement/Sensor/AddSensor'),
			// 			meta: {
			// 				title: '传感器基站管理'
			// 			}
			// 		},
			// 		{
			// 			path: 'bindingSensor',
			// 			name: 'bindingSensor',
			// 			component: () => import(/* webpackChunkName: "sensorBindingSensor" */'@/views/DeviceManagement/Sensor/BindingSensor'),
			// 			meta: {
			// 				showNav: true,
			// 				title: '传感器管理'
			// 			}
			// 		},
			// 		{
			// 			path: 'dispatch',
			// 			name: 'dispatch',
			// 			component: () => import(/* webpackChunkName: "sensorDispatch" */'@/views/DeviceManagement/Sensor/Dispatch'),
			// 			meta: {
			// 				showNav: true,
			// 				title: '调度管理'
			// 			}
			// 		},
			// 		{
			// 			path: 'warning',
			// 			name: 'warning',
			// 			component: () => import(/* webpackChunkName: "sensorWarning" */'@/views/DeviceManagement/Sensor/Warning'),
			// 			meta: {
			// 				showNav: true,
			// 				title: '报警设置'
			// 			}
			// 		}
			// 	]
			// },
			{
				path: 'videoSurveillance',
				name: 'videoSurveillance',
				component: () => import(/* webpackChunkName: "videoSurveillanceBindingDevice" */'@/views/DeviceManagement/VideoSurveillance'),
				meta: {
					title: '视频监控设备管理'
				}
			},
			{
				path: 'safetyHat',
				name: 'safetyHat',
				component: () => import(/* webpackChunkName: "safetyHatBinding" */'@/views/DeviceManagement/SafetyHat'),
				meta: {
					showNav: true,
					title: '安全帽设备管理'
				}
			}
		]
	}